Remove endian-sensitivity from Abseil's RNG
authorBenjamin Barenblat <bbaren@google.com>
Tue, 9 Feb 2021 19:41:06 +0000 (19:41 +0000)
committerBenjamin Barenblat <bbaren@debian.org>
Tue, 9 Feb 2021 19:41:06 +0000 (19:41 +0000)
commit9059fdd51224493244d7d70cd1bb31612a729e27
tree4049ea1d8150bcce6246a8b332776206fc4d594f
parenta39ecd2439a365f4328ada49bb2a5378c462f468
Remove endian-sensitivity from Abseil's RNG

Forwarded: yes
Applied-Upstream: https://github.com/abseil/abseil-cpp/commit/c36d825d9a5443f81d2656685ae021d6326da90c

Ensure that the Abseil random number generator produces identical output
on both big- and little-endian platforms by byte-swapping appropriately
on big-endian systems.

The author works at Google. Upstream applied this patch as Piper
revision 355635051 and exported it to GitHub; the Applied-Upstream URL
above points to the exported commit.

Gbp-Pq: Name endian-random.diff
absl/base/BUILD.bazel
absl/base/CMakeLists.txt
absl/base/internal/endian.h
absl/random/CMakeLists.txt
absl/random/internal/BUILD.bazel
absl/random/internal/explicit_seed_seq.h
absl/random/internal/randen_engine.h
absl/random/internal/randen_slow_test.cc